package com.ucar.umock.client.app.remotesupport;

import com.ucar.umock.client.annotation.UMock;
import com.ucar.umock.client.app.remotesupport.dto.VehicleInfoDTO;
import com.ucar.umock.client.enums.EnumMockExectorType;
import org.springframework.stereotype.Component;

/**
 * @ClassName VehicleRemoteSupport
 * @Description TODO
 * @Author zhanbs baoshan.zhan@ucarinc.com
 * @Date 2020/4/2 13:55
 * @Version 1.0
 **/
@Component
@UMock(name="车辆调用类")
public class VehicleRemoteSupport  {


    @UMock(name="根据车辆ID获取车辆详情",handleType = EnumMockExectorType.CUSTOM_HANDLE,customHandle = "vehicleRemoteSupportMock")
    public VehicleInfoDTO getVehicleById(Long id){
        System.out.println("读取车辆详情");
        return null;
    }

    @UMock(name="修改车辆工作状态")
    public void updateVehicleWorkStatus(Long id,Integer workStatus){
        System.out.println("修改车辆作业状态");
    }

}
